package day_8;

import java.util.Scanner;

public class ques2 {
    public static void main(String[]args){
        Scanner scan=new Scanner(System.in);
        int A=scan.nextInt();
        int B=scan.nextInt();
        int temp=1;
        //boolean flag=true;
        while(true){
            if(temp%A==0&&temp%B==0){
                System.out.println(temp);
                break;
            }
            temp++;
        }
    }
}
